go/types.Checker.isValidIndex (method)

5 uses

	go/types (current package)
		builtins.go#L678: 		if !check.isValidIndex(y, InvalidUnsafeAdd, "length", true) {
		builtins.go#L811: 		if !check.isValidIndex(y, InvalidUnsafeSlice, "length", false) {
		builtins.go#L847: 		if !check.isValidIndex(y, InvalidUnsafeString, "length", false) {
		index.go#L355: 	if !check.isValidIndex(&x, InvalidIndex, "index", false) {
		index.go#L378: func (check *Checker) isValidIndex(x *operand, code Code, what string, allowNegative bool) bool {